<?php
/*
 * Steve
 */
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
        <title>登录与注册  - 阿基米米网上商城</title>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/frontend.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config['template_name']; ?>/javascript/akimimi.js'></script>
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config ['template_name']; ?>/css/register_login.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config ['template_name']; ?>/css/headerAndFooter.css' rel='stylesheet' type='text/css' />
        <link rel="shortcut icon" href="<?php echo ConfigConstants::getTImagePath();?>/favicon.ico"></link>
    </head>
<body>
    <?php 
            require_once '../app/views/HeaderView.php';
            echo HeaderView::getCommonHeaderView();
    ?>
    <div id="reglogin">
           <input type="hidden" id="errorNameEmpty" value="<?php echo MEMBERNAMEEMPTY; ?>" />
           <input type="hidden" id="errorNameExist" value="<?php echo MEMBERNAMEEXIST; ?>" />
           <input type="hidden" id="errorNameError" value="<?php echo MEMBERNAMEERROR; ?>" />
           <input type="hidden" id="errorNameRight" value="<?php echo MEMBERNAMERIGHT; ?>" />
        
           <input type="hidden" id="errorEmailEmpty" value="<?php echo EMAILEMPTY; ?>" />
           <input type="hidden" id="errorEmailExist" value="<?php echo EMAILEXIST; ?>" />
           <input type="hidden" id="errorEmailError" value="<?php echo LOGINEMAILERROR; ?>" />
           <input type="hidden" id="errorEmailRight" value="<?php echo EMAILRIGHT; ?>" />
        
           <input type="hidden" id="errorPasswordEmpty" value="<?php echo PASSWORDEMPTY; ?>" />
           <input type="hidden" id="errorPasswordError" value="<?php echo PASSWORDERROR; ?>" />
           <input type="hidden" id="errorPasswordRight" value="<?php echo PASSWORDRIGHT; ?>" />
        
           <input type="hidden" id="errorRepasswordEmpty" value="<?php echo REPEATPASSWORDEMPTY; ?>" />
           <input type="hidden" id="errorRepasswordError" value="<?php echo REPEATPASSWORDERROR; ?>" />
           <input type="hidden" id="errorRepasswordRight" value="<?php echo REPEATPASSWORDRIGHT; ?>" />
        
           <input type="hidden" id="errorCaptchaEmpty" value="<?php echo CAPTCHAEMPTY; ?>" />
           <input type="hidden" id="errorCaptchaError" value="<?php echo CAPTCHAERROR; ?>" />
           <input type="hidden" id="errorCaptchaRight" value="<?php echo CAPTCHARIGHT; ?>" />
           
           <input type="hidden" id="errorHighSchoolEmpty" value="<?php echo PLSELECTYOURHIGHSCHOOL; ?>" />
           <input type="hidden" id="errorNoAgreement" value="<?php echo PLREADAGREEMENT; ?>" />
           
           <input type="hidden" id="errorLoginError" value="<?php echo SUBMITLOGINERROR; ?>" />
           
           
        
	    <div id="navigation">你当前的位置：<span>注册</span></div>
            <div id="reglogin_title">
    	        <div class="lt_border">
        	       <div class="lt_title">
            	       <p>用户登录</p>如果您已经是阿基米米会员请登录
                   </div>
            
                </div>
    	        <div class="rt_border">
        	        <div class="rt_title">
            	          <p>用户注册</p>如果您还没有账号，请按照提示填写注册单！
                    </div>
                </div>        
           </div>
           <div id="reglogin_middle">
        <!--左边登录开始-->
    	       <div class="reglogin_left">
                   <form action="" method="post" id="loginForm" onsubmit="javascript:return Login.loginSubmit();">
                       <div id="left_login">
                           <div class="loing_errot_label" id="errorLabel"></div>
                           <div class="loing_mtr">
                              <ul>
                                  <li class="title">电子邮箱：</li>
                                  <li class="text"><input type="text" class="input3" id="email1" name="email" //>
                                  </li>
                                  <li class="label"><a href="/u/register">新用户注册</a></li>
                              </ul>
                           </div>
                           <div class="loing_mtr">
                              <ul>
                                  <li class="title">密&nbsp;&nbsp;&nbsp;&nbsp;码：</li>
                                  <li class="text"><input type="password" class="input3" id="password1" name="password" /></li>
                                  <li class="label" ><a href="/u/findpassword">忘记密码？</a></li>
                              </ul>
                          </div>
                          <div class="loing_mtr">
                             <ul>
                                <li class="title">&nbsp;</li>
                                <li class="text" style="margin-left:5px;">
                                    <span id="captchaImg1" style="float:left;"><?php echo $captchaImg1; ?></span><span style="float:left;" ><a href="javascript:void(0);" onclick="Login.changeCaptcha();"><?php echo CAPTCHACHANGE; ?></a></span>
                               </li>
                             </ul>
                        </div>
                  
                        <div class="loing_mtr" style="margin-top:5px;">
                             <ul>
                                 <li class="title"><?php echo CAPTCHA.COLON; ?></li>
                                 <li class="text">
                                    <input type="text" class="input3"  id="captcha1" name="captcha"/>
                                    
                                </li>
                            </ul>
                       </div>
                          <div class="loing_button"><input type="image" src="<?php echo ConfigConstants::getTImagePath().'/login_10.jpg';?>" /></div> 
                       </div>
                 </form>
              </div>
        <!--左边登录结束-->
        <!--右边注册开始-->
        <div class="reglogin_right">
        <form action="/o/register" method="post" id="regForm" onsubmit="javascript:return Register.regSubmit();">
            
            <input type="hidden" id="quickpage" value="quickpage" />
            
            <div id="right_reg">
                <div class="reg_errot_label"></div>
            	<div class="reg_row_title">请填写你的用户名</div>
                <div class="reg_row">
                	<ul>
                    	<li class="title">用户名：</li>
                        <li class="text"><input type="text" class="input3" id="username" name="username" onblur="javascript:Register.validateUserName();"/></li>
                        <li id="errorUserName"></li>
                    </ul>
                </div>
                <div class="reg_row_title">请选择用户类型</div>
                <div class="reg_row">
                	<ul>
                    	<li class="title">用户类型：</li>
                        <li class="img">
                            <img src="<?php echo ConfigConstants::getTImagePath().'/reglogin_09.gif';?>"  alt="" /><br />
                        </li>
                        <li class="img">
                            <img src="<?php echo ConfigConstants::getTImagePath().'/reglogin_06.gif'; ?> "  alt="" /><br />
                        </li>
                    </ul>
                </div> 
                <div class="reg_row">
                	<ul>
                    	<li class="title"></li>
                        <li class="radio">
                            <input name="schoolRadio" id="school" type="radio" value="1" onclick="javascript:Register.checkSchool();" checked="checked" />
                            高校用户
                        </li>
                        <li class="radio">
                        	<input name="schoolRadio" id="no_school" type="radio" value="2" onclick="javascript:Register.checkSchool();"/>
                            非高校用户
                            <input type="hidden" id="isSchool" name="isSchool" value="0" />
                        </li>
                    </ul>
                </div>                 
                <div class="reg_row" id="select_school">
                	<ul>
                    	<li class="title">所在大学：</li>
                        <li class="text"><input type="text" class="input3" id="campusesName" name="campusesName" onclick="javascript:CheckOut.showAllCampuses();" onblur="javascript:Register.validateHighSchool();"  readonly="readonly" />
                            <input type="hidden" id="campusesId" name="campusesId" />
                        </li>
                        <li id="errorSchool">请选择高校</li>
                    </ul>
                </div> 
            	<div class="reg_row_title">请填写安全设置</div> 
                <div class="reg_row">
                	<ul>
                    	<li class="title">电子邮箱：</li>
                        <li class="text"><input type="text" class="input3" id="email" name="email" onblur="javascript:Register.validateEmail();" /></li>
                        <li id="errorEmail"></li>
                        
                    </ul>
                </div> 
                <div class="reg_row">
                	<ul>
                    	<li class="title">密&nbsp;&nbsp;&nbsp;码：</li>
                        <li class="text"><input type="password" class="input3" id="password" name="password" onblur="javascript:Register.validatePassword();"/></li>
                        <li id="errorPassword"></li>   
                    </ul>
                </div> 
                <div class="reg_row">
                	<ul>
                    	<li class="title">确认密码：</li>
                        <li class="text"><input type="password" class="input3" id="repassword" name="repassword" onblur="javascript:Register.validateRepassword();"/></li>
                        <li id="errorRepassword"></li>
                        
                    </ul>
                </div>
                <div class="register_row" style="padding-left: 90px;">
                      <ul>
                          <li class="title">&nbsp;</li>
                          <li class="text" style="margin-left:5px;">
                             <span id="captchaImg" style="float:left;"><?php echo $captchaImg; ?></span><span style="float:left;" ><a href="javascript:void(0);" onclick="Register.changeCaptcha();"><?php echo CAPTCHACHANGE; ?></a></span>
                          </li>
                     </ul>
                  </div>
                  
                  <div class="reg_row" style="margin-top:5px;">
                      <ul>
                          <li class="title"><?php echo CAPTCHA.COLON; ?></li>
                          <li class="text">
                              <input type="text" class="input3"  id="captcha" name="captcha" onblur="javascript:Register.validateCaptcha();" /></li>
                          <li id="errorCaptcha"></li>
                     </ul>
                  </div>
                  <div class="r_box02" style="padding-left:53px;">
                      <input name="agreement" id="agreement" type="checkbox" value="" checked="checked" /><?php echo IALREADYREADAGREE;?><span style="cursor:pointer" onclick="" ><?php echo AKIMIMIAGREEMENT?></span>
                      <div id="errorAgreement"></div>
                  </div>
                
                <div class="reg_row">
                	<ul>
                    	<li class="button"><input type="image" src="<?php echo ConfigConstants::getTImagePath().'/reglogin_14.gif';?>" alt="" /></li>
                        
                    </ul>                
                	
                </div>
             </div>
        </form>
        <!--右边注册结束-->             
        </div>
    </div>
    <div class="bottom_img"></div>
</div>
<?php 
         require_once '../app/views/FooterView.php';
         echo FooterView::getCommonFooterView();
?> 
<!-- all school info start -->
        
        <div class="allSchool" id="allSchool" style="display:none;">
            <div id="city" class="city">
            <?php 
                for($i = 0; $i < count($province); $i++) {
                    if($i==2){
                		$style='style="background-color: rgb(255, 255, 255); float:left; margin:5px 3px 0 2px; overflow:hidden; width:auto; height:auto;"';
                	} else {
                		$style='style="background-color: rgb(255, 255, 255);"';
                	}
            ?>
                <span id="title_<?php echo $i;?>"  <?php echo $style;?> ><a href="javascript:CheckOut.showArea1('<?php echo $province[$i]["id"]; ?>',1)"><?php echo $province[$i]["title"]; ?></a></span>
            <?php } ?>
            </div>
            <div id="area" class="area">
            
                <ul id="allCampuses">
                    <?php 
                        foreach ($campuses as $name) {
                    ?>
                    <li><a href="javascript:CheckOut.viewArea('<?php echo $name["area_name"];?>', '<?php echo $name["id"];?>');"><?php echo $name["area_name"];?></a></li>
                    <?php 
                        }
                    ?>
                </ul>
            
            </div>
            <div style="margin-left:400px;">
              <input name="button" type="button" value="关闭" onClick="CheckOut.closeBtn();" />
            </div>
        </div>
        
        <!-- all school info end --> 
   
</body>
</html>
